Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ndeadly
ndeadly / homebrew_sysmodules.txt
Last active April 17, 2026 01:51
Title IDs for Nintendo Switch sysmodules and system applets
/* Homebrew sysmodules */
0000000000534C56 SaltyNX
00FF0000000002AA BootSoundNX
00FF0000636C6BF2 nx-reader
00FF0000636C6BFF sys-clk
00FF00006D7470FF mtp-server-nx
00FF0000A53BB665 SysDVR
00FF0000B378D640 NX-FanControl
00FF747765616BFF switch-sys-tweak
0100000000000052 switch-nfp-mitm
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp

Git Cheat Sheet

Commands

Getting Started

git init

or

@jackm
jackm / can-packages-and-tools.md
Last active April 17, 2026 01:47
Collection of CAN bus packages and tools

Collection of CAN bus packages and tools

This document assumes the use of Linux as the chosen development platform. Items in bold are highly recommended.

It is recommended to use SocketCAN when working with CAN bus on Linux. It is supported by the Linux kernel mainline and follows the Linux interface model, allowing you to use other network tools such as Wireshark. This also allows the creation of virtual CAN interfaces where no physical hardware is required to simulate or replay CAN messages.